x86/ioapic: only use dest32 with x2apic and interrupt remapping enabled
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 20 Dec 2019 15:26:09 +0000 (16:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Dec 2019 15:26:09 +0000 (16:26 +0100)
commit9356f9de41628f0675dd3458540b3558c52c4a8a
tree9f71d1c1f44356478dc83d2f02b42185ebdd8da3
parentd93630b18c0a783f35a6253a4346bc1be30de5f8
x86/ioapic: only use dest32 with x2apic and interrupt remapping enabled

The IO-APIC code assumes that x2apic being enabled also implies
interrupt remapping being enabled, and hence will use the 32bit
destination field in the IO-APIC entry.

This is safe now, but there's no reason to not enable x2APIC even
without interrupt remapping, and hence the IO-APIC code needs to use
the 32 bit destination field only when both interrupt remapping and
x2APIC are enabled.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/io_apic.c